import Vue from 'vue'
import VueRouter from 'vue-router'
// import HomeView from '../views/HomeView.vue'

Vue.use(VueRouter)

const routes = [
 {
  path: '/',
  component: () => import('../views/login'),
 },
  {
    path: '/farent',
    component: () => import('../views/farent'),
    children:[
      {
        path: '/home',
        component: () => import('../views/home')
      },
      {
        path: '/cart',
        component: () => import('../views/cart')
      },
      {
        path: '/cate',
        component: () => import('../views/cate')
      },
      {
        path: '/my',
        component: () => import('../views/my')
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
